package test.springtheorem;
  
import java.lang.annotation.ElementType;  
import java.lang.annotation.Retention;  
import java.lang.annotation.RetentionPolicy;  
import java.lang.annotation.Target;  
  
/** 
 * @Description:定义注解, 山寨spring的@Resource
 * @ClassName: Resource
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.FIELD, ElementType.METHOD })
public @interface Resource {
  
    //注解的name属性  
    public String name() default "";  
}  